package com.latefly.skewwork.ui.page.tools.calculator

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController
import com.latefly.skewwork.ui.theme.MediumGray

@Composable
fun CalculatorPage(
    navController: NavHostController,
    modifier: Modifier,
    calculatorViewModel: CalculatorViewModel
) {
    Calculator(
        state = calculatorViewModel.state,
        buttonSpace = 8.dp,
        onAction = calculatorViewModel::onAction,
        modifier = Modifier
            .fillMaxSize()
            .background(MediumGray)
            .padding(16.dp)
    )
}
